﻿using HeinQi.Framework.LayerBases;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TbShop.Entity
{
    /// <summary>
    /// 站点菜单表
    /// </summary>
    [Table("SiteMap")]
    public class SiteMap : DataEntityBase
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 主页面的相对路径
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 显示顺序
        /// </summary>
        public int OrderNum { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }

        /// <summary>
        /// 父菜单Id
        /// </summary>
        public int ParentId { get; set; }

        /// <summary>
        /// 图标字体类
        /// </summary>
        public string FontClass { get; set; }

        /// <summary>
        /// 菜单标识，用于高亮菜单
        /// </summary>
        public string ModuleId { get; set; }

        /// <summary>
        /// 对应Authority中的Code
        /// </summary>
        public string Code { get; set; }

        [NotMapped]
        public List<SiteMap> ChildSiteMaps { get; set; }
    }
}
